<!--<form action="" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td>路线名称</td>
            <td><{$data.track_name}></td>
        </tr>
        <tr>
            <td>评分</td>
            <td>路线评分：<input type="text" name="track_score" value="<{$data.track_score}>"/></td>
            <td>导游评分：<input type="text" name="guider_score" value="<{$data.guider_score}>" /></td>
        </tr>
        <tr>
            <td>评价内容</td>
            <td><textarea name="comments" id="" cols="30" rows="10"><{$data.comments}></textarea></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="hidden" name="id" value="<{$data.id}>"/>
                <input type="file" name="tourist_pic[]"/> <br/>
                <input type="file" name="tourist_pic[]"/><br/>
                <input type="file" name="tourist_pic[]"/><br/>
                <input type="file" name="tourist_pic[]"/><br/>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="发布"/>
                <input type="button" onclick="window.location.href='javascript:history.go(-1);'" value="取消"/>
            </td>
        </tr>
    </table>
</form>-->
<h2 class="title">路线点评</h2>

<form class="dianp-pj" action="" method="post" enctype="multipart/form-data">
    <div class="info fix">
        <span class="left">路线名称</span>
        <span class="right"><{$data.track_name}></span>
    </div>
    <div class="info fix">
        <span class="left">评分</span>
        <span class="txt">活动</span>

        <div class="img fix goods-evaluation">
            <span class="show"></span>
            <span class="show"></span>
            <span class=""></span>
            <span class=""></span>
            <span class=""></span>
            <input type="hidden" name="track_score" value="2">
        </div>

        <span class="txt">导游</span>

        <div class="img fix goods-evaluation">
            <span class="show"></span>
            <span class="show"></span>
            <span class=""></span>
            <span class=""></span>
            <span class=""></span>
            <input type="hidden" name="guider_score" value="2">
        </div>

    </div>

    <label class="label fix">
        <span class="text">评价内容</span>
        <textarea class="textarea" placeholder="0-200字" name="comments"></textarea>
    </label>
    <input type="hidden" name="id" value="<{$data.id}>"/>
    <div class="imgbox">
        <p class="imgtext">至少上传一张，最多4张</p>
        <ul class="box fix">
            <li class="imgli" id="imgId1"><input name="tourist_pic[]" id="userHeadImg1" type="file" class="file"></li>
            <li class="imgli" id="imgId2"><input name="tourist_pic[]" id="userHeadImg2" type="file" class="file"></li>
            <li class="imgli" id="imgId3"><input name="tourist_pic[]" id="userHeadImg3" type="file" class="file"></li>
            <li class="imgli" id="imgId4"><input name="tourist_pic[]" id="userHeadImg4" type="file" class="file"></li>
        </ul>
    </div>

    <div class="bottom fix">
        <a href="javascript:;" onclick="javascript :history.back(-1);" class="go-back">取消</a>
        <input type="submit"  class="submit" value="发布">
    </div>

</form>
<script>
    $("#userHeadImg1").change(function(event) {
        var file = $(event.target)[0].files[0];
        var src = URL.createObjectURL(file);
        if(file){
            $("#imgId1").css("background-image","url("+src+")")
            //表示获取到了图片
        }else{
            //表示点击了取消
        }
    });
    $("#userHeadImg2").change(function(event) {
        var file = $(event.target)[0].files[0];
        var src = URL.createObjectURL(file);
        if(file){
            $("#imgId2").css("background-image","url("+src+")")
            //表示获取到了图片
        }else{
            //表示点击了取消
        }
    });
    $("#userHeadImg3").change(function(event) {
        var file = $(event.target)[0].files[0];
        var src = URL.createObjectURL(file);
        if(file){
            $("#imgId3").css("background-image","url("+src+")")
            //表示获取到了图片
        }else{
            //表示点击了取消
        }
    });
    $("#userHeadImg4").change(function(event) {
        var file = $(event.target)[0].files[0];
        var src = URL.createObjectURL(file);
        if(file){
            $("#imgId4").css("background-image","url("+src+")")
            //表示获取到了图片
        }else{
            //表示点击了取消
        }
    });

    $(document).ready(function () {
        $('.goods-evaluation').each (function () {
            star_grade(this);
        });
    });

</script>
<script>
    $(".dianping").addClass("active");
    $(".track_common").addClass("mactive");
    $('.down-menu').eq(0).show();
</script>
